import jsonschema
schema={
    "type":"object",
    "properties":{
        "message": {"pattern":"^操作成功"},
        "mobile":{"pattern":"^[0-9]{11}$"},
    }
}
json_data= {
    "message":"操作成功！",
    "mobile":"13245678910"
}
res=jsonschema.validate(instance=json_data,schema=schema)
print("校验结果:",res)